//
//  LXGiftModel.swift
//  礼物动画展示
//
//  Created by seven on 2017/12/29.
//  Copyright © 2017年 seven. All rights reserved.
//

import Foundation

class LXGiftModel{
    var senderName: String
    var senderURL : String
    var giftName : String
    var giftURL : String
    
    init(senderName: String, senderURL: String, giftName: String, giftURL: String) {
        self.senderName = senderName
        self.senderURL = senderURL
        self.giftName = giftName
        self.giftURL = giftURL
    }
    
    func isEqual(_ object: Any?) -> Bool{
        guard let object = object as? LXGiftModel else {return false}
        guard object.giftName == giftName && object.senderName == senderName else {return false}
        return true
    }
}
